﻿
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Automobile.service.Model;
using Automobile.service.DAL;
using System.Data;

namespace Automobile.service.BLL
{
    public  class ShipmentsBll
    {
        ShipmentsDal dal = new ShipmentsDal();
        /// <summary>
        /// 显示库存盘点单信息
        /// </summary>
        /// <returns></returns>
        public List<ShipmentsModel> Shipments()
        {
            return dal.Shipments();
        }
        /// <summary>
        /// 添加库存盘点单信息
        /// </summary>
        /// <returns></returns>
        public int AddShipments(ShipmentsModel s)
        {
            return dal.AddShipments(s);
        }
        /// <summary>
        /// 删除库存盘点单信息
        /// </summary>
        /// <returns></returns>
        public int DeleShipments(int Shipments_Id)
        {
            return dal.DeleShipments(Shipments_Id);
        }

        /// <summary>
        /// 取单个库存盘点单信息
        /// </summary>
        /// <returns></returns>
        public DataTable GetShipments(string Shipments_Id)
        {
            return dal.GetShipments(Shipments_Id);
        }

        /// <summary>
        /// 更新库存盘点单信息
        /// </summary>
        /// <param name="stu"></param>
        /// <returns></returns>
        public int UpdateShipmentsModel(ShipmentsModel s)
        {
            return dal.UpdateShipmentsModel(s);
        }
    }
}
